<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Lottery
 *
 * @ORM\Table(name="lottery")
 * @ORM\Entity
 */
class Lottery
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="lottery_date", type="datetime", nullable=false)
     */
    protected $lotteryDate;

    /**
     * @var float
     *
     * @ORM\Column(name="ticket_price", type="float", nullable=false)
     */
    protected $ticketPrice;

    /**
     * @var integer
     *
     * @ORM\Column(name="payout_rate", type="integer", nullable=false)
     */
    protected $payoutRate;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set lotteryDate
     *
     * @param \DateTime $lotteryDate
     * @return Lottery
     */
    public function setLotteryDate($lotteryDate)
    {
        $this->lotteryDate = $lotteryDate;
    
        return $this;
    }

    /**
     * Get lotteryDate
     *
     * @return \DateTime 
     */
    public function getLotteryDate()
    {
        return $this->lotteryDate;
    }

    /**
     * Set ticketPrice
     *
     * @param float $ticketPrice
     * @return Lottery
     */
    public function setTicketPrice($ticketPrice)
    {
        $this->ticketPrice = $ticketPrice;
    
        return $this;
    }

    /**
     * Get ticketPrice
     *
     * @return float 
     */
    public function getTicketPrice()
    {
        return $this->ticketPrice;
    }

    /**
     * Set payoutRate
     *
     * @param integer $payoutRate
     * @return Lottery
     */
    public function setPayoutRate($payoutRate)
    {
        $this->payoutRate = $payoutRate;
    
        return $this;
    }

    /**
     * Get payoutRate
     *
     * @return integer 
     */
    public function getPayoutRate()
    {
        return $this->payoutRate;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return Lottery
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }
}
